<template>
  <el-row>
    <el-col
      :span="6"
      v-for="(bagua, index) in baguas"
      :key="bagua.id"
      :offset="index > 0 ? 0 : 0"
    >
      <router-link
        :to="'/core/gua/eight/form/' + bagua.guaId"
        style="margin-right: 5px"
      >
        <el-card :body-style="{ padding: '0px' }">
          <img :src="bagua.guaXiang" class="image" />
          <div style="padding: 14px">
            <span style="center">{{ bagua.guaName }}</span>
          </div>
        </el-card>
      </router-link>
    </el-col>
  </el-row>
</template>
<style>
.time {
  font-size: 13px;
  color: #999;
}

.bottom {
  margin-top: 13px;
  line-height: 12px;
}

.button {
  padding: 0;
  float: right;
}

.image {
  width: 100%;
  display: block;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both;
}
</style>

<script>
import eightAPI from "@/api/core/gua/eight.js";
export default {
  data() {
    return {
      baguas: {},
      currentDate: new Date(),
    };
  },
  created() {
    this.initData();
  },
  methods: {
    initData() {
      eightAPI.getList().then((response) => {
        this.baguas = response.data.list;
      });
    },
  },
};
</script>
